package com.hejr;

import com.hejr.config.DBConfigOne;
import com.hejr.config.DBConfigTwo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
* @desc: 开启读取配置文件
* @author:hejr
* @date:2019/4/9
*/
@EnableConfigurationProperties(value = { DBConfigOne.class, DBConfigTwo.class })
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@MapperScan({"com.hejr.test01.mapper", "com.hejr.test02.mapper"})
public class Springboot2005Application {

	public static void main(String[] args) {
		SpringApplication.run(Springboot2005Application.class, args);
	}

}
